(function(){

    function PicWall(){
        this.initdom = $('.init');
        this.wra = $('.wra');
        this.item = $('.item')
        // this.flag = false;
        this.init();
    }
    PicWall.prototype.init = function(){
        var that = this;
        setTimeout(function(){
            that.initdom.removeClass('init');
        },200)
        
        this.bindEvent();
    }
    PicWall.prototype.bindEvent = function(){
        var that = this;
        that.item.on('click',function(e){
            $(this).addClass('active');
            that.wra.addClass('wra-active');
        })
        $('.close').on('click',function(e){
            e.stopPropagation();
            $('.active').removeClass('active');
            that.wra.removeClass('wra-active');
        })

    }
    var picWall = new PicWall();
}())

